<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .firstUl {
            list-style: none;
            display: flex;
        }

        .firstUl li {
            margin-right: 10px;
        }
    </style>
</head>

<body>
    <div id="app">
        <ul class="firstUl">
            <li v-for="item in list" :key="item.love">
                <input type="checkbox" v-model="item.isChecked" @click="choose">
                <span>{{ item.love }}</span>
            </li>
        </ul>
        <ul class="secondUl" v-if="judge">
            <li v-for="item in checkedList" :key="item">{{ item }}</li>
        </ul>
    </div>

    <script src="../vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {
                list: [
                    {
                        isChecked: false,
                        love: '科幻'
                    },
                    {
                        isChecked: false,
                        love: '喜剧',
                    },
                    {
                        isChecked: false,
                        love: '动漫',
                    },
                    {
                        isChecked: false,
                        love: '冒险',
                    },
                    {
                        isChecked: false,
                        love: '科技',
                    },
                    {
                        isChecked: false,
                        love: '军事',
                    },
                    {
                        isChecked: false,
                        love: '娱乐',
                    },
                    {
                        isChecked: false,
                        love: '奇闻'
                    }
                ],
                selectedList: []
            },
            computed: {
                judge: {
                    get() {
                        return this.list.some(item => item.isChecked)
                    },
                    set() { }
                }
            },
            methods: {
                choose() {

                }
            }
        })
    </script>
</body>

</html>